<%--
  Created by IntelliJ IDEA.
  User: HKemmm
  Date: 2022/3/19
  Time: 19:47
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>测试</title>


    <script src="/static/js/jquery.min.js"></script>
</head>
<body>
<form action="/ali/pay" method="post" target="_blank">


    <input type="text" id="t1" name="outTradeNo">
    <input type="text" id="t2" name="subject">
    <input type="text" id="t3" name="totalAmount">
    <input type="submit" value="提交" id="btn">
</form>

<script>
    function tt() {
        var t1 = $("#t1").val();
        var t2 = $("#t2").val();
        var t3 = $("#t3").val();


        $.ajax({
            url:"/ali/pay/?outTradeNo="+t1+"&subject="+t2+"&totalAmount="+t3,
        });
    }
</script>
</body>
</html>
